<ion-modal-view>
  <div class="modal">
    <ion-header-bar class="bar-stable">
      <button class="button button-clear button-positive" ng-click="closeModal(false)">
        取消
      </button>
      <h1 class="title">部门</h1>
      <button class="button button-clear button-positive" ng-click="closeModal(true)">
        确定
      </button>
    </ion-header-bar>
    <div class="bar bar-header item-input-inset bar-subheader" no-scroll="true">
      <label class="item-input-wrapper">
        <i class="icon ion-ios-search placeholder-icon"></i>
        <input type="search" placeholder="搜索" ng-model="keywordDep">
      </label>
    </div>
    <ion-content class="has-header has-subheader" scroll="true">
      <ion-list>
        <ion-item class="normal-list-height item-height">
          <ion-checkbox ng-model="statue" ng-click="selectAllDep(statue)" class="contact-item depart">
            <div>
              <label class="size16">选择所有部门</label>
              <label></label>
            </div>
            <p></p>
          </ion-checkbox>
        </ion-item>
        <ion-item class="normal-list-height item-height" collection-repeat="dep in deps | filter:keywordDep">
          <ion-checkbox ng-checked="checkedDep(dep.orgid)" ng-model="statue" ng-click="selectDep(dep.orgid,statue)"
                        class="contact-item depart">
            <div>
              <label class="size16">{{dep.orgname}}</label>
              <label></label>
            </div>
            <p></p>
          </ion-checkbox>
        </ion-item>
      </ion-list>
    </ion-content>
  </div>
</ion-modal-view>
